(define-module (emacs kubernetes-el)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system emacs)
  #:use-module (gnu packages emacs-xyz)
  #:use-module (guix packages)
  #:use-module (guix git-download))

(define-public emacs-kubernetes-el
  (package
   (name "emacs-kubernetes-el")
   (version "0.13.0")
   (source (origin
            (method git-fetch)
            (uri (git-reference
                  (url "https://github.com/chrisbarrett/kubernetes-el.git")
                  (commit version)))
            (file-name (git-file-name name version))
            (sha256
             (base32
              "0di3vcq8c8j8avjlic7bhvbq4p27cvzyklm26wiq4rga88vjhyb0"))))
   (build-system emacs-build-system)
   (propagated-inputs
    `(("emacs-magit-popup" ,emacs-magit-popup)
      ("emacs-evil" ,emacs-evil)
      ("magit" ,emacs-magit)))
   (home-page "https://github.com/chrisbarrett/kubernetes-el")
   (synopsis
    "A magit-style interface to the Kubernetes command-line client.")
   (description "A magit-style interface to the Kubernetes
command-line client.")
   (license license:gpl3+)))

(define-public emacs-k8s-mode
  (let ((commit "5984acee6f3891afa78acfd1d08c44a24953a233")
        (revision "1"))
   (package
    (name "emacs-k8s-mode")
    (version (git-version "0.1" revision commit))
    (source (origin
             (method git-fetch)
             (uri (git-reference
                   (url "https://github.com/TxGVNN/emacs-k8s-mode.git")
                   (commit commit)))
             (file-name (git-file-name name version))
             (sha256
              (base32
               "11x602pmqa3833azkzph1ghm354nypv6rr1y53k6kdrkwviwkcpm"))))
    (build-system emacs-build-system)
    (arguments
     `(#:include (cons "^snippets\\/k8s-mode\\/" %default-include)))
    (propagated-inputs
     `(("emacs-yaml-mode" ,emacs-yaml-mode)))
    (home-page "https://github.com/TxGVNN/emacs-k8s-mode")
    (synopsis
     "Kubernetes mode in Emacs")
    (description "Kubernetes mode in Emacs")
    (license license:gpl3+))))
